Skip to content

fix(frankenphp-symfony): add Symfony 8 to composer constraints#192

Open
dennismenken wants to merge 1 commit into
php-runtime:mainfrom
perfect-in-vision:fix/frankenphp-symfony-symfony8-compat
Open

fix(frankenphp-symfony): add Symfony 8 to composer constraints#192
dennismenken wants to merge 1 commit into
php-runtime:mainfrom
perfect-in-vision:fix/frankenphp-symfony-symfony8-compat

Conversation

@dennismenken
Copy link
Copy Markdown

Summary

PR #185 ("Update Symfony package versions to include 8.0") updated the Symfony constraints for all other packages in this mono-repo but missed frankenphp-symfony — only the PHPUnit dev-dependency was bumped from ^9.5 to ^10.5.58.

This PR adds || ^8.0 to the three Symfony constraints in src/frankenphp-symfony/composer.json:

  • symfony/dependency-injection
  • symfony/http-kernel
  • symfony/runtime

Why no code changes are needed

The runtime consists of two files (Runtime.php, Runner.php) that only use stable Symfony interfaces:

  • HttpKernelInterface
  • TerminableInterface
  • RunnerInterface
  • SymfonyRuntime
  • Request

None of these changed between Symfony 7 and 8. We have been running this package with Symfony 8.0 in production without issues.

Evidence

Comparing the diff of #185 for frankenphp-symfony vs other packages:

frankenphp-symfony (only PHPUnit bumped):

-        "phpunit/phpunit": "^9.5"
+        "phpunit/phpunit": "^10.5.58"

psr-nyholm (correctly updated in same PR):

-        "symfony/runtime": "^5.4 || ^6.0 || ^7.0"
+        "symfony/runtime": "^5.4.46 || ^6.0 || ^7.0 || ^8.0"
-        "phpunit/phpunit": "^9.5"
+        "phpunit/phpunit": "^10.5.58"

PR php-runtime#185 ("Update Symfony package versions to include 8.0") updated the
Symfony constraints for all other packages in this mono-repo but missed
frankenphp-symfony — only the PHPUnit dev-dependency was bumped.

The runtime uses stable Symfony interfaces (HttpKernelInterface,
TerminableInterface, RunnerInterface, SymfonyRuntime) that are unchanged
in Symfony 8.0, so no code changes are required.
@mateusfmello
Copy link
Copy Markdown

Following

1 similar comment
@enginydigital
Copy link
Copy Markdown

Following

@dennismenken
Copy link
Copy Markdown
Author

Friendly ping on this one 🙂. It's been open since the end of March and there are now a couple of folks following along. The change is just the composer constraint that #185 already applied to every sibling package in the mono-repo, so it should be a quick look. Happy to rebase or address anything if needed. Is there anyone in particular I should tag for a review?

@alexander-schranz
Copy link
Copy Markdown
Member

alexander-schranz commented May 19, 2026

If I understand https://symfony.com/blog/new-in-symfony-7-4-dx-improvements-part-2#automatic-integration-of-frankenphp-worker-mode correclty FrankenPHP Runtime is since Symfony 7.4 and 8.0 part of the Symfony core and make this package so obsolete. So maybe we should better abandoned / deprecated it in favor of offical symfony integration? /cc @dunglas @Nyholm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants